package com.xucy.springboot.jmx;

/**
 * @Author xucy
 * @Date 2019-12-09 16:02
 * @Description
 **/

public class Hello implements HelloMBean {

    private String name;

    private int age;

    @Override
    public String getName() {
        System.out.println("jmx 过来调getName():::"+this.name);
        return this.name;
    }

    @Override
    public void setName(String name) {
        this.name=name;
    }

    @Override
    public int getAge() {
        System.out.println("jmx 过来调getAge():::"+this.age);
        return this.age;
    }

    @Override
    public void setAge(int age) {
        this.age=age;
    }

    @Override
    public void helloWorld(int age) {
        this.age=age;
        System.out.println("age"+age);
    }

    @Override
    public void helloWorld(String name) {
        this.name=name;

        System.out.println("name"+name);
    }
}
